<?php
// Cron wolany codziennie o 1:15

$work_path = '/pgbsite';
/*
produkcja:  /pgb/baza_pgb/
work:       /pgb/work/baza_klientow/
*/

// Define path to application directory
define('APPLICATION_PATH', realpath(dirname(__FILE__) . $work_path));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/libs/'),
realpath(APPLICATION_PATH . '/Modules/'),
get_include_path(),
)));

session_start();
date_default_timezone_set('Europe/Warsaw');

require_once(APPLICATION_PATH . '/classes/class.DBManager.php');
include_once 'phpinc/Config.php';

//ZMIANA USTAWIEN KONFIGURACJI DEBUG ON/OFF
Config::loadConfig(APPLICATION_PATH.'/config/config_dev.ini');


DBManager::initZendDB();

require_once($work_path . '/cron/ranking_create.php');
create();
?>
